-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added simple shadows sandcastle #3876
Conversation
var scene = viewer.scene; | ||
var shadowMap = scene.shadowMap; | ||
shadowMap._maxmimumDistance = 10000.0; | ||
scene.globe.castShadows = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
globe
is also available off of viewer
.
Take a screenshot for this for the Sandcastle gallery. |
|
7adfbc5
to
38821b7
Compare
39bc370
to
a93f019
Compare
Updated. |
When I switch the view from Exton to Half Dome, the aircraft stops animating. Is that intentional? |
No... I'll look into that. |
Otherwise, this is great. Let me know when to merge. |
This should be ready now. I vertically aligned the buttons. |
For #2594
The simple sandcastle demo for shadows. There are a few places where I access scene directly, which I shouldn't do for a Showcase demo. I can maybe make these accessible through
Viewer
instead.